package com.smart_campus.teg.common;

import com.smart_campus.sys.common.ResultObj;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Alfred
 * @date 2020/4/28 12:10
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TEGResultObj {

    public static final TEGResultObj COURSE_INSERT_YES = new TEGResultObj(200, "课程添加成功");
    public static final TEGResultObj COURSE_INSERT_NO = new TEGResultObj(-1, "课程添加失败");
    public static final TEGResultObj COURSE_UPDATE_YES = new TEGResultObj(200, "课程修改成功");
    public static final TEGResultObj COURSE_UPDATE_NO = new TEGResultObj(-1, "课程修改失败");
    public static final TEGResultObj COURSE_DELETE_YES = new TEGResultObj(200, "课程删除成功");
    public static final TEGResultObj COURSE_DELETE_NO = new TEGResultObj(-1, "课程删除失败");

    public static final TEGResultObj TEACHER_YES = new TEGResultObj(200, "老师修改成功");
    public static final TEGResultObj TEACHER_NO = new TEGResultObj(-1, "老师修改失败");
    public static final TEGResultObj STUDENT_YES = new TEGResultObj(200, "学生修改成功");
    public static final TEGResultObj STUDENT_NO = new TEGResultObj(-1, "学生修改失败");
    public static final TEGResultObj YES = new TEGResultObj(200, "成功");
    public static final TEGResultObj NO = new TEGResultObj(-1, "失败");

    private Integer code = 200;
    private String msg = "";
    private Object token = "";

    //public static final String LOGIN_SUCCESS = "LOGIN_SUCCESS";


    public TEGResultObj(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}
